<template>
  <div class="home">
  <h1> {{ str }}</h1>

  </div>
</template>

<script >
import { Options, Vue } from 'vue-class-component';
import request from "@/request";

export default {
  name: "home",
  data() {
    return {
      str:''
    }
  },
  created() {
    request("/hello").then(res => {
      console.log(res)
      this.str = res;
    })
  },
  methods: {

  }
}
//export default class HomeView extends Vue {}
</script>
